import LogUtils from "../index";

declare const logUtils: LogUtils;
declare global {
  interface Window {
    logUtils: LogUtils;
  }
}

window.logUtils = new LogUtils();

const xc = {
  name: "xcLeung",
  age: 27,
};
const messageList = [
  {
    content: "健康上报提醒",
    language: "zh_CN",
    title: "测试消息",
  },
  { content: "just a test", language: "en", title: "test" },
];
console.log("app.ts run now2222!");
console.log("- TAlarmLevel -----------------------------------");
logUtils.warn("aaaa", "bbb");
logUtils.info("next print xc object", xc);
logUtils.success("next print xc object", xc);
logUtils.warn("next print xc object", xc);
logUtils.error("next print xc object", xc);
console.log("- bgTAlarmLevel -----------------------------------");
logUtils.bgWarn("aaaa", "bbb");
logUtils.bgInfo("next print xc object", xc);
logUtils.bgSuccess("next print xc object", xc);
logUtils.bgWarn("next print xc object", xc);
logUtils.bgError("next print xc object", xc);
console.log("- mixTAlarmLevel -----------------------------------");

const logUtils_ws = new LogUtils({
  name: "Websocket",
  nameStyle: "padding: 2px 4px; background-color: #006EFF; font-weight: bold; color:#fff; border-radius:4px; margin-right:4px;",
});
logUtils_ws.mixSuccess("messageList", messageList);

export {};
